# -*- coding: utf-8 -*-
"""
Created on Wed Apr 24 13:21:03 2019

@author: yaoyu
"""

fo = open('o.txt', 'w+')
ls = ['中国','法国','美国']
fo.writelines(ls)
fo.seek(0)
for line in fo:
    print(line)
fo.close()